import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../fintness_app_theme.dart';
import 'fake/fake.dart';
import 'fake/kcal-fake.dart';

class FakeMediterranesnDietView extends StatelessWidget {
  final AnimationController mainScreenAnimationController;
  final Animation mainScreenAnimation;

  const FakeMediterranesnDietView(
      {Key key, this.mainScreenAnimationController, this.mainScreenAnimation})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AnimatedBuilder(
        animation: mainScreenAnimationController,
        builder: (BuildContext context, Widget child) {
          return Padding(
            padding:
                const EdgeInsets.only(left: 24, right: 24, top: 16, bottom: 18),
            child: Container(
              decoration: BoxDecoration(
                  color: FintnessAppTheme.nearlyWhite,
                  borderRadius: BorderRadius.only(
                      topLeft: Radius.circular(8.0),
                      bottomLeft: Radius.circular(8.0),
                      topRight: Radius.circular(68),
                      bottomRight: Radius.circular(8.0)),
                  boxShadow: <BoxShadow>[
                    BoxShadow(
                        color: FintnessAppTheme.grey.withOpacity(0.2),
                        offset: Offset(1.1, 1.1),
                        blurRadius: 10.0),
                  ]),
              child: Padding(
                padding: const EdgeInsets.all(20),
                child: Row(
                  children: <Widget>[
                    Column(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: <Widget>[
                        KCalFake(
                          animationController: this.mainScreenAnimationController,
                          animation: this.mainScreenAnimation,
                          title: 'Eaten',
                          value: 1127,
                          unit: 'Kcal',
                          image: "assets/fitness_app/eaten.png",
                          color: '#87A0E5',
                        ),
                        SizedBox(
                          height: 20,
                        ),
                        KCalFake(
                          animationController: this.mainScreenAnimationController,
                          animation: this.mainScreenAnimation,
                          title: 'Burned',
                          value: 1127,
                          unit: 'Kcal',
                          image: "assets/fitness_app/burned.png",
                          color: '#F56E98',
                        )
                      ],
                    ),
                    Spacer(),
                    FakeKCalLeft(
                        animationController: this.mainScreenAnimationController,
                        animation: this.mainScreenAnimation)
                  ],
                ),
              ),
            ),
          );
        });
  }
}
